package com.example.graduation.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

/**
 * <p>
 *
 * </p>
 *
 * @author xyc
 * @since 2022-02-11
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "Shop对象", description = "")
public class Shop implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "商店id")
    @TableId(value = "shop_id", type = IdType.AUTO)
    private Integer shopId;

    @ApiModelProperty(value = "商家id")
    private Integer userId;

    @ApiModelProperty(value = "商品id")
    private Integer goodsId;

    @ApiModelProperty(value = "0正常 1休息 2倒闭 3未通过 4被拒绝")
    private Integer status;

    @ApiModelProperty(value = "商店位置")
    private String position;

    @ApiModelProperty(value = "商店创建时间")
    private Long createTime;

    @ApiModelProperty(value = "商店名称")
    private String name;

    @ApiModelProperty(value = "营业执照，证明，卫生许可证")
    private String license;

    @ApiModelProperty(value = "营业时间 （一天中的营业时间）")
    private String openTime;

    @ApiModelProperty(value = "活动，需要把金额两两配备为一组，38.12,59.12 （以，为分隔，意味满38减12）")
    private String active;

    @ApiModelProperty(value = "配送费")
    private Integer freight;

    @ApiModelProperty(value = "商店图片")
    private String photo;

    @ApiModelProperty(value = "申请声明")
    private String content;


    @ApiModelProperty(value = "商店类型")
    private String shoptype;

    @TableField(exist = false)
    private List<Goods> list;

}
